var express = require('express');
var router = express.Router();
var evaluateusercontroller = require('../controllers/evaluateusercontroller')

  //上传评价信息
  router.post('/insetEvaluate', function(req, res, next) {
    evaluateusercontroller.insertEvaluate(req,res)
    // res.send('respond with a resource');
});
  //删除评价信息
  router.delete('/delEvaluate', function(req, res, next) {
    evaluateusercontroller.delEvaluate(req,res)
    // res.send('respond with a resource');
});
  //查询评价信息
  router.get('/evaluate', function(req, res, next) {
    evaluateusercontroller.selEvaluate(req,res)
    // res.send('respond with a resource');
});
  //查询单个评价信息
  router.get('/Oneevaluate', function(req, res, next) {
    evaluateusercontroller.selOneEvaluate(req,res)
    // res.send('respond with a resource');
});
//回复评价信息
router.post('/backEvaluate', function(req, res, next) {     
  evaluateusercontroller.insertbackevaluate(req,res)
    // res.send('respond with a resource');
});
//删除回复的评论信息
router.delete('/delbackEvaluate', function(req, res, next) {     
  evaluateusercontroller.delbackevaluate(req,res)
    // res.send('respond with a resource');
});
//查询回复的评论信息
router.get('/selbackEvaluate', function(req, res, next) {     
  evaluateusercontroller.selbackevaluate(req,res)
    // res.send('respond with a resource');
});
module.exports = router



